package com.serkol.driving.learning.mapper;

import com.serkol.driving.learning.entity.AttributeValue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author pingan
* @description 针对表【attribute_value】的数据库操作Mapper
* @createDate 2023-11-17 18:28:43
* @Entity com.serkol.driving.learning.entity.AttributeValue
*/
public interface AttributeValueMapper extends BaseMapper<AttributeValue> {
    List<AttributeValue> findByKey(@Param("key") String key);

    @MapKey("isValue")
    Map<String, Map<String, Object>> findBySelectValueKey(@Param("key") String key);

    List<Map<String, Object>> findBySelectValueKeyList(@Param("key") String key);
}




